package com.ztgf.shopping.models.vo.shop;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotations.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.io.Serializable;

/**
 * 黑名单VO
 *
 * @author zhanghualang
 * @Date 2020-06-16 16:01:00
 */
@Data
public class ShopBlacklistVO implements Serializable {
    @ApiModelProperty(value = "主键")
    private Long id;
    @ApiModelProperty(value = "乐观锁")
    private Integer revision;
    @ApiModelProperty(value = "创建人")
    private Long createUserId;
    @ApiModelProperty(value = "更新人")
    private Long updateUserId;
    @ApiModelProperty(value = "黑名单类型 0用户黑名单，1店铺黑名单")
    private Integer type;
    @ApiModelProperty(value = "用户名称")
    private String companyName;
    @ApiModelProperty(value = "审核表id")
    private Long shopInfoAuditId;
    @ApiModelProperty(value = "店铺类型 0专营店、1专卖店、2旗舰店、3自营店 （店铺黑名单使用）")
    private Integer shopType;
    @ApiModelProperty(value = "店铺ID")
    private Long shopId;

    @ApiModelProperty("创建时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    protected Date createTime;

    @ApiModelProperty("注册时间（用户黑名单使用）")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    protected Date registrationTime;
}
